<?php
/**
 * | @author 韩威兵^life <1877361302@qq.com>
 * +----------------------------------------------------------------------
 * | @copyright 2016 - 2019 HQ
 * +----------------------------------------------------------------------
 * | @version $Id: 2019/4/25 17:42 jiahe_new OldBase.php 韩威兵^life $
 * +----------------------------------------------------------------------
 */

namespace app\common\common\model\oldModel;

//use app\common\common\model\base;
use think\Controller;
use think\Model;

class  OldBase extends Model {

    // 设置单独的数据库连接
    protected $connection = [
        'database' => '2222',
    ];

    public function __construct($data=[])
    {
        $this->connection = [
            'hostname' => config('old_host'),
            'username' => config('old_username'),
            'password' => config('old_password'),
            'database' => config('old_db_name'),
            'prefix'=>''
        ];


        parent::__construct($data);

    }

}  